# -*- coding: utf-8 -*-
# @Time    : 2024/5/16 11:10
# @Author  : Alvin
# @File    : redis_client.py
import redis

class RedisClient:
    def __init__(self, host='localhost', port=6379, db=0):
        self.redis = redis.StrictRedis(host=host, port=port, db=db)

    def set(self, key, value):
        return self.redis.set(key, value)

    def get(self, key):
        return self.redis.get(key)

    # 根据需要实现其他Redis操作方法